Skip to content

Add docs for API v2 - #100

Draft
Chew wants to merge 8 commits into
RetroAchievements:mainfrom
Chew:feat/v2-docs
Draft

Add docs for API v2#100
Chew wants to merge 8 commits into
RetroAchievements:mainfrom
Chew:feat/v2-docs

Conversation

@Chew

@Chew Chew commented Feb 4, 2026

Copy link
Copy Markdown

This will be a draft for a while, but this PR adds docs for the new JSON:API v2 changes to RAWeb.

This also adds an OpenAPI spec for all of the endpoints.

The sidebar changes allows there to be v1 and v2 docs. Most v2 pages, including the sidebar, are generated from the spec. The ultimate goal is to make it easy to add new endpoints and add examples if desired.

For now, it's a mess, until we really decide what we want. But for now, I just wanted to get this started.

image

The full spec is currently here: https://github.com/Chew/RA-api-docs/blob/feat/v2-docs/docs/v2/retroachievements.json

@wescopeland

Copy link
Copy Markdown
Member

I have a few goals for the V2 API documentation:

  • The OpenAPI spec should be generated in the RAWeb repo.
  • Static types for TS / Kotlin / etc consumers can be generated from this OpenAPI spec.
  • We can use something like Scalar for docs generation.

A big open question is how the spec will actually get published. I'm thinking maybe we can have a GitHub Action that emits openapi.json upon commits to RAWeb's release branch, but I'm not 100% sure yet on this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants